//
//  RBGoodsDetailResponse.h
//  zhongzhenglu
//
//  Created by mac on 2022/11/4.
//

#import "RBResponse.h"

@interface RBGoodsDetailSpecItemModel : RBResponse

@property(nonatomic, copy)NSString *id;
@property(nonatomic, copy)NSString *type_id;
@property(nonatomic, copy)NSString *pid;
@property(nonatomic, copy)NSString *spec_name;
@property(nonatomic, copy)NSString *spec_price;
@property(nonatomic, assign)BOOL is_default ;

@property(nonatomic, strong)NSArray *spec_son;

#pragma mark - 计算值
@property(nonatomic, assign) BOOL selected;
@property(nonatomic, assign) NSInteger count;

@end

@interface RBGoodsDetailSpecModel : RBResponse

/**商品类型id*/
@property(nonatomic, copy)NSString *id;
/**商品类型名称*/
@property(nonatomic, copy)NSString *name;
/**1显示 0不显示*/
@property(nonatomic, assign)NSInteger status;
/**加价方式 0 固定价格 1 属性价格 2商品价格    */
@property(nonatomic, assign)NSInteger is_add_type;
/**固定价格*/
@property(nonatomic, copy)NSString *base_price;
/**是否计算属性价格0 否 1 是    */
@property(nonatomic, assign)BOOL is_price;
/**模板类型: 1单选模板[显示]; 2多选模板[弹出]; 3选择器模板[弹出];
 4单选模板[弹出][多项]; 5牙位模板[显示]; 6牙排模板[弹出]    */
@property(nonatomic, assign)NSInteger model_type;
/**外层容器（1是 0否）    */
@property(nonatomic, assign)BOOL is_box;
/** 子属性 */
@property(nonatomic, strong)NSArray *spec;


//计算属性
/** 层深: 2/3 */
@property(nonatomic, assign) NSInteger level;
/** 针对model_type == 1 */
@property(nonatomic, assign) NSInteger selIndex;

@end

@interface RBGoodsDetailShopGoodsModel : RBResponse
@property (nonatomic,copy) NSString *id;
@property (nonatomic,copy) NSString *good_name;
@property (nonatomic,copy) NSString *picurl;
@property (nonatomic,copy) NSString *cate_id;
@property (nonatomic,copy) NSString *sell_price;

@end


@interface RBGoodsDetailShopModel : RBResponse
@property(nonatomic,copy) NSString *logo;
@property(nonatomic,copy) NSString *id;
@property(nonatomic,copy) NSString *content;
@property(nonatomic,strong) NSArray *shop_goods;
@property(nonatomic,copy) NSString *store_name;
@property (nonatomic, copy) NSString *mobile;
@end


@interface RBGoodsDetailUserInfoModel : RBResponse
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *job_name;
@property (nonatomic, copy) NSString *company_name;
@property (nonatomic, copy) NSString *city;
@property (nonatomic, copy) NSString *district;
@property (nonatomic, copy) NSString *addr_detail;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *province;
@end


@interface RBGoodsDetailModel : RBResponse
//图片
@property (nonatomic, copy) NSString *picurl;
//售价
@property (nonatomic, copy) NSString *price;
//总价
@property (nonatomic, copy) NSString *total_price;
//原价
@property (nonatomic, copy) NSString *shop_price;
//品牌名称
@property (nonatomic, copy) NSString *brand_name;
//商品名称
@property (nonatomic, copy) NSString *good_name;
//销量
@property (nonatomic, copy) NSString *sell_number;
//属性
@property (nonatomic, strong) NSArray *goods_spec;
//评价总数
@property (nonatomic, copy) NSString *evaluate_count;
//评价列表
@property (nonatomic, retain) NSArray *evaluate;
//店铺信息
@property (nonatomic, strong) RBGoodsDetailShopModel *shop_info;
//为你推荐
@property (nonatomic, strong) NSArray *cate_goods;
//详情
@property (nonatomic, copy) NSString *content;
//商品ID
@property (nonatomic, copy) NSString *id;
//店铺ID
@property(nonatomic, copy) NSString *shop_id;
//用户信息
@property (nonatomic, strong) RBGoodsDetailUserInfoModel *user_detail;
//是否收藏 1收藏 0未收藏
@property (nonatomic, copy) NSString *is_collect;
//
@property (nonatomic, retain) NSArray *picarr;
@property (nonatomic, copy) NSString *video;

@end

@interface RBGoodsDetailResponse : RBResponse

@property(nonatomic, strong) RBGoodsDetailModel *data;

@end

@interface RBGoodsDetailEvaluateModel : RBResponse
//几颗星
@property (nonatomic, copy) NSString *star_num;
//内容
@property (nonatomic, copy) NSString *content;
//评价时间
@property (nonatomic, copy) NSString *create_time;
//是否匿名 0否 1是
@property (nonatomic, copy) NSString *is_anonymous;
//昵称
@property (nonatomic, copy) NSString *nickname;
//头像
@property (nonatomic, copy) NSString *avatar;
@end
